package com.yanmaohu.nikita.data.function.statement;

import com.yanmaohu.nikita.data.expression.Expression;
import com.yanmaohu.nikita.data.function.FunctionBody;

import java.util.List;

/**
 * @author Bright Lee
 */
public final class CaseStatement extends Statement {

    private List<Expression> case_;
    private List<List<Expression>> whenHeadList;
    private List<FunctionBody> whenFunctionBody;
    private FunctionBody else_;

    public CaseStatement(int beginIndex, int endIndex, List<Expression> case_, List<List<Expression>> whenHeadList, List<FunctionBody> whenFunctionBody, FunctionBody else_) {
        super(beginIndex, endIndex);
        this.case_ = case_;
        this.whenHeadList = whenHeadList;
        this.whenFunctionBody = whenFunctionBody;
        this.else_ = else_;
    }

}
